package com.lechisoft.reflect.service;
import com.lechisoft.reflect.annotation.InitAnnotation;
import org.springframework.transaction.annotation.Transactional;
/**
 * @author mister_wei
 * @version 1.1.1
 * @title web_service
 * @package com.lechisoft.reflect.service
 * @date 2019/7/3 16:54
 */
@InitAnnotation({"1","2"})
public class ProxyClass  implements ProxyClassServiceInterface {

    @InitAnnotation(value = {"张三"},isNotNull = true)
    public boolean init(){
       return true;
    }

    public static void main(String[] args) {
        ProxyClassServiceInterface proxyClass = new ProxyClass();
        BeanFactory beanFactory =  new BeanFactory("com.lechisoft.reflect.service.ProxyClass");
        ProxyClassServiceInterface proxyClasss = (ProxyClassServiceInterface) beanFactory.initBean();
        proxyClasss.init();
    }
}
